import React, { Component } from 'react';
import { NavBar, Icon } from 'antd-mobile';
import { withRouter } from 'react-router-dom'


@withRouter
class Detailnav extends Component {
  render() {
    console.log(this.props.history);
    return (
      <NavBar
      style={{background:"#FF6C0C" ,color:"#fff",fontWeight:"bold"}}
        mode="light"
        icon={<Icon type="left" />}
        leftContent="退出"
        // icon={<Icon type="left" />}
        // onLeftClick={() => (console.log('onLeftClick') )}
        onLeftClick={() => (this.props.history.go(-2))}
        rightContent={[
          // <Icon key="0" type="search" style={{ marginRight: '16px' }} />,
          <Icon key="1" type="ellipsis" />,
        ]}
      >
        <h4  style={{ color:"#fff"}}>
        {/* 详情页{this.props.match.params.id} */}
          登录
        </h4>
      </NavBar>
    );
  }
}

export default Detailnav;
